package com.mh.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mh.pojo.Users;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * (Users)表数据库访问层
 *
 * @author zmh
 * @since 2023-07-27 16:02:37
 */
@Mapper
public interface UsersDao extends BaseMapper<Users> {
    @Update("UPDATE users SET publish_number = publish_number + #{number} WHERE uid = #{uid}")
    int incrementPublishNumber(@Param("uid") String uid, @Param("number") Integer number);
}

